package com.control.qct.businesssteward.adapter;

import android.support.annotation.Nullable;

import com.control.qct.businesssteward.R;
import com.control.qct.businesssteward.model.ReplenishmentOrderModel;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2018/1/17 0017.
 */

public class ReplenishmentOrderAdapter extends BaseQuickAdapter<ReplenishmentOrderModel,BaseViewHolder> {
    public ReplenishmentOrderAdapter(@Nullable List<ReplenishmentOrderModel> data) {
        super(R.layout.rv_replenishment_order_item, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, ReplenishmentOrderModel item) {
//        ((SwipeMenuLayout) holder.itemView).setSwipeEnable(true);//是否禁止滑动删除

        holder.addOnClickListener(R.id.btn_del);
    }
}
